package com.yvan.es;

import com.yvan.platform.Pagination;

import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;

public class AggPageHelper {

    public Set<Map<String, Object>> innerList = new LinkedHashSet<>();
    private Pagination pagination;
    private int detailCount;
    private int limitCount;

    public AggPageHelper(Pagination pagination) {
        this(pagination, 0);
    }

    public AggPageHelper(Pagination pagination, int detailCount) {
        this.setPagination(pagination);
        this.setDetailCount(detailCount);
    }

    public Pagination getPagination() {
        return pagination;
    }

    public void setPagination(Pagination pagination) {
        this.pagination = pagination;
    }

    public int getDetailCount() {
        return detailCount;
    }

    public void setDetailCount(int detailCount) {
        this.detailCount = detailCount;
    }

    public int getLimitCount() {
        return limitCount;
    }

    public void setLimitCount(int limitCount) {
        this.limitCount = limitCount;
    }


//    public Collection<?> build() {
//        return innerList;
//    }
}
